package com.xiaochong.bitong.api.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaochong.tir.common.data.mapper.AppDownloadMapper;
import com.xiaochong.tir.common.data.po.AppDownload;

/**
 * @author qzw
 * 2018年8月31日 下午4:46:04
 * @description 
 **/
@Service
public class DownLoadUrlService {
	
	@Autowired
	private AppDownloadMapper appDownloadMapper;

	/**
	 * 获取app下载地址
	 * @param type
	 * @return
	 */
	public String getAppUrl(String type){
		AppDownload t = new AppDownload();
		t.setAppType(type);
		t.setEnableFlag(true);
		AppDownload appDownload = appDownloadMapper.selectByType(t);
		return appDownload.getDownloadUrl();
	}
}
